package com.baidu.basic;

import java.util.Random;

public class RandomUtils {

	/**
	 * 产生8位的随机数
	 * 
	 * @return
	 */
	public static String get8WeiRandom() {
		Random   random   =   new   Random(); 
		StringBuffer sb = new StringBuffer("");
		for (int i = 0; i < 8; i++) {
			String rand = String.valueOf(random.nextInt(10));
			sb.append(rand);
		}
		return sb.toString();
	}

}
